package com._51cto.healthy.mapper;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.pojo.Sport;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/****
 * @Author:DancingHorse
 * @Description:TMemberMapper层
 * @Date 2022/4/14 0:12
 *****/
public interface SportMapper extends BaseMapper<Sport> {
              //分页查询运动列表
    List<Sport> findAll(@Param("query") String query);

    @Override
    int deleteByPK(@Param("id") Integer pk);

    @Override
    int insert(Sport sport);

    @Override
    int update(Sport sport);

    List<Sport> findByname(@Param("query") String query);
}
